package spring.framework.beans.factory.config;

import spring.framework.beans.BeansException;

/**
 * @author fun.pengzh
 * @class spring.framework.beans.factory.config.BeanPostProcessor
 * @desc 允许自定义修改Bean实例的接口，例如包装对象和代理。
 * @since 2021-10-10
 */
public interface BeanPostProcessor {

    /**
     * 执行Bean实例化之前
     */
    Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException;

    /**
     * 执行Bean实例化之后
     */
    Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException;


}
